package jjn.effective_java.chapter6.item34;

/**
 * int枚举模式(int enum pattern)
 * 1. provides nothing in the way of type safety.
 * 2. provides little in the way of power.
 *
 * @author Jiang Jining
 * @since 2023-04-26 19:24
 */
public class FruitConstant {
    public static final int APPLE_FRUIT = 0;
    public static final int APPLE_PIPPIN = 1;
    public static final int APPLE_GRANNY_SMITH = 2;
    
    public static final int ORANGE_NAVEL = 0;
    public static final int ORANGE_TEMPLE = 1;
    public static final int ORANGE_BLOOD = 2;
}
